<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script src="script/jquery-1.10.min.js"></script>
</head>
<body>

<p>点击按钮，等待 3 秒会弹出 "Hello"。</p>
<p>在弹出的对话框中点击 “确定”, 3 秒后会继续弹出。如此循环下去...</p>
<button onclick="myFunction('abc')">点我</button><br>
<button value="123 " onclick="myFunction1(this)">提取value</button>

<script>


function test_alert(txt){
	console.log(txt)
	alert("Hello, "+txt)
};


function myFunction(txt) {
	console.log(txt)
    setInterval(test_alert('ttt'), 3000);
}

function myFunction1(obj) {
	console.log(obj)
	var thisobj= $(obj); //js转jquery对象
	console.log(thisobj)
	console.log(thisobj.prop('value'))
}
</script>

</body>
</html>